/*
 * @Author: zhang zhijiang 2824735304@qq.com
 * @Date: 2024-11-25 13:04:02
 * @LastEditors: zhang zhijiang 2824735304@qq.com
 * @LastEditTime: 2025-03-04 16:51:57
 * @FilePath: /linux/test.c
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include<stdio.h>
int addtotop(int top)
{
  int ret = 0;
  int i =0;
  for(;i<top;i++)
  {
    ret+=i;
  }
  return ret;
}
int main()
{
  printf("gdb start:\n");
  int top = 100;
  int sum = addtotop(top);
  printf("sum = %d\n ",sum);
  printf("gdb end:\n");
  return ;
}
